package com.xiangshizhineng.tianzhangzhi.app.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiangshizhineng.tianzhangzhi.app.dao.PatrolFileDAO;
import com.xiangshizhineng.tianzhangzhi.app.mapper.PatrolFileMapper;
import com.xiangshizhineng.tianzhangzhi.app.model.request.PatrolFileRequest;
import com.xiangshizhineng.tianzhangzhi.app.model.response.PatrolFileResponse;
import com.xiangshizhineng.tianzhangzhi.app.service.PatrolFileService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class PatrolFileServiceImpl extends ServiceImpl<PatrolFileMapper, PatrolFileResponse> implements PatrolFileService {

    @Autowired
    PatrolFileDAO patrolFileDAO;

    @Override
    public int insert(List<PatrolFileRequest> patrolFileRequestList) {
        return patrolFileDAO.insert(patrolFileRequestList);
    }

}
